<template>
  <div class="test">
    <h1>爷爷</h1>
    <parent></parent>
  </div>
</template>
<script>
import Parent from './Parent.vue'
export default {
  data() {
    return {
      msg: '爷爷给的100块压岁钱'
    }
  },
  provide: {
    msg: '爷爷给的100块压岁钱',
    events: {
      getData() {
        console.log(1)
      }
    }
  },
  components: {
    Parent
  },
  methods: {
    handleClick(data) {
      console.log(data)
    }
  }
}
</script>
<style lang="scss"></style>
